package com.zhhe.linearList;

import lombok.Data;

/*
 *Author:ZouHeng
 *Des: 链表节点
 *Date:2020-12-08  11:35
 */
@Data
public class Node<T> {
    private T value;
    private Node<T> next;

    public Node(T value) {
        this.value = value;
    }

    public Node(T value, Node<T> next) {
        this.value = value;
        this.next = next;
    }

    @Override
    public String toString() {
        return "Node{" + "value=" + value + ", next=" + next + '}';
    }
}
